package com.zw.yzk.kabu.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by zhanwei on 2017/3/9.
 */

public class ConfirmTicketModel implements Parcelable {
    private int ticketId;
    private int exhibitionId;
    private float price;
    private int count;
    private String type;
    private String exhibitionName;
    private String exhibitionTime;
    private String image;

    public int getTicketId() {
        return ticketId;
    }

    public void setTicketId(int ticketId) {
        this.ticketId = ticketId;
    }

    public int getExhibitionId() {
        return exhibitionId;
    }

    public void setExhibitionId(int exhibitionId) {
        this.exhibitionId = exhibitionId;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getExhibitionName() {
        return exhibitionName;
    }

    public void setExhibitionName(String exhibitionName) {
        this.exhibitionName = exhibitionName;
    }

    public String getExhibitionTime() {
        return exhibitionTime;
    }

    public void setExhibitionTime(String exhibitionTime) {
        this.exhibitionTime = exhibitionTime;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.ticketId);
        dest.writeInt(this.exhibitionId);
        dest.writeFloat(this.price);
        dest.writeInt(this.count);
        dest.writeString(this.type);
        dest.writeString(this.exhibitionName);
        dest.writeString(this.exhibitionTime);
        dest.writeString(this.image);
    }

    public ConfirmTicketModel() {
    }

    protected ConfirmTicketModel(Parcel in) {
        this.ticketId = in.readInt();
        this.exhibitionId = in.readInt();
        this.price = in.readFloat();
        this.count = in.readInt();
        this.type = in.readString();
        this.exhibitionName = in.readString();
        this.exhibitionTime = in.readString();
        this.image = in.readString();
    }

    public static final Parcelable.Creator<ConfirmTicketModel> CREATOR = new Parcelable.Creator<ConfirmTicketModel>() {
        @Override
        public ConfirmTicketModel createFromParcel(Parcel source) {
            return new ConfirmTicketModel(source);
        }

        @Override
        public ConfirmTicketModel[] newArray(int size) {
            return new ConfirmTicketModel[size];
        }
    };
}
